package com.swinw.micimerci.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swinw.micimerci.utils.PageUtils;
import com.swinw.micimerci.utils.Query;


import com.swinw.micimerci.dao.ResourceVideoDao;
import com.swinw.micimerci.entity.ResourceVideoEntity;
import com.swinw.micimerci.service.ResourceVideoService;


@Service("resourceVideoService")
public class ResourceVideoServiceImpl extends ServiceImpl<ResourceVideoDao, ResourceVideoEntity> implements ResourceVideoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ResourceVideoEntity> page = this.page(
                new Query<ResourceVideoEntity>().getPage(params),
                new QueryWrapper<ResourceVideoEntity>()
        );

        return new PageUtils(page);
    }

}